package com.market.goods.dao.mongo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

@ToString
@Data
@Document(collection="marketGoodsParams")
public class MarketGoodsParams {


//    private String goodsParamsId;

    @Id
    private String goodsId;
    /**
     * 商品类型id
     */
    private String goodsTypeId;

    private String paramCode1;
    private String paramName1;
    private String paramCode2;
    private String paramName2;
    private String paramCode3;
    private String paramName3;
    private String paramCode4;
    private String paramName4;
    private String paramCode5;
    private String paramName5;
    private String paramCode6;
    private String paramName6;
    private String paramCode7;
    private String paramName7;
    private String paramCode8;
    private String paramName8;
    private String paramCode9;
    private String paramName9;
    private String paramCode10;
    private String paramName10;
    private String paramCode11;
    private String paramName11;
    private String paramCode12;
    private String paramName12;
    private String paramCode13;
    private String paramName13;
    private String paramCode14;
    private String paramName14;

    /**
     *  @author: fangningfeng
     *  @Date: 2020/9/7 17:43
     *  @Description: 是否有效
     */
    private String isValid;

    /**
     *  @author: fangningfeng
     *  @Date: 2020/9/7 17:43
     *  @Description: 图片地址
     */
    private String pictureUrl;
    /**
     *  @author: fangningfeng
     *  @Date: 2020/9/3 17:51
     *  @Description: 价格
     */
    private BigDecimal goodsPrice;

    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createdTime;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date updateTime;

}
